<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title>提问点名</title>
		<link rel="stylesheet" type="text/css" href="../../css/api.css"/>
		<link rel="stylesheet" href="../../css/weui.min.css" />
		<link rel="stylesheet" href="../../css/mui.min.css" />
		<link rel="stylesheet" href="../../css/base.css"/>
		<style type="text/css" media="screen">
			html, body {
				background-color: #f3f5f7;
			}
			.top-hand-div-style {
				text-align: center;
				margin-top: 80px;
				background-color: #FFFFFF;
				border: 2px solid #FFFFFF;
				border-radius: 6px;
				margin-right: 10px;
				margin-left: 10px;
				padding-top: 20px;
				padding-bottom: 20px;
			}
			.top-hand-img-style {
				width: 120px;
				height: 120px;
				border-radius: 60px;
				/*ox-shadow: 20px 0px 30px 10px #abcdef inset;*/
			}
			.top-hand-span-style {
				display: block;
				/*padding-bottom: 20px;*/
			}
			.middle-span-style {
				background: url(../../image/icon_ask_class.png) left center no-repeat;
				background-size: 20px;
				padding-left: 24px;
			}
			.name-middle-span-style {
				text-align: left;
			}
			.bottom-btn-div {
				position: fixed;
				bottom: 0px;
				width: 100%;
				background-color: #18b4ed;
				color: #FFFFFF;
				line-height: 40px;
				text-align: center;
				border: #18b4ed;
				display: none;
			}
			#middleDivId {
				margin-top: 20px;
				padding-bottom: 40px;
			}
			#askdiv {
				margin-right: 10px;
				margin-left: 10px;
				text-align: start;
				display: none;
			}
			#contentdiv {
				margin-top: 20px;
				margin-bottom: 50px;
				padding-right: 10px;
				padding-left: 10px;
				text-align: start;
				display: none;
			}
			.img_pic_style {
				max-width: 100%;
				padding-left: 10px;
				padding-right: 10px
			}
		</style>
	</head>
	<body>
		<div class="base_style_color base_title_Immerse" id='BarAppearance' ></div>
		<div class="base_navigation_bar base_style_color base_navigation_item_bar base_title_position" >
			<a class="base_left_item" href="#" onclick="backClick()"> <img class="base_back_icon" src="../../image/icon_jiantou.png" alt=""> </a>
			<span id="newsTitle">提问中</span>
			<a class="base_right_item nav-item" id="wancheng"> </a>
		</div>
	</body>
	<script type="text/javascript" src="../../script/api.js"></script>
	<script type="text/javascript" src="../../script/jquery.min.js"></script>
	<script type="text/javascript" src="../../script/common.js"></script>
	<script type="text/javascript" src="../../script/MD5.js"></script>
	<script type="text/javascript" src="../../script/timeStampTool.js"></script>
	<script type="text/javascript" src="../../script/requestTool.js"></script>
	<script type="text/javascript" src="../../script/push.js"></script>
	<script type="text/javascript">
		var pageparam = '';
		apiready = function() {
			pageparam = api.pageParam;
			setupSubframe();
			keyback();
		};
		function setupSubframe() {
			var y = $('.base_navigation_bar').height() + $('#mian').height() + 22;
			api.pageParam['sourceurl'] = window.location.pathname;
			api.pageParam['sourcetitle'] = document.title;
			api.openFrame({
				name : 'TeacherQusertionNames',
				url : 'TeacherQusertionNames.html',
				rect : {
					x : 0,
					y : y,
					w : 'auto',
					h : 'auto'
				},
				pageParam : api.pageParam,
				bounces : false,
				vScrollBarEnabled : true,
				hScrollBarEnabled : false
			});
		}

		function backClick() {
			api.sendEvent({
				name : 'refreshQusetionData'
			});
			api.closeToWin({
				name : 'TeacherQuestionsWin'
			});
			if (api.pageParam.type == 3 ) {//学生身份
				sendBuriedNotifi('1', '学生端提问页', '180');
			} else {
			    sendBuriedNotifi('1', '老师端提问结果页', '204');
			}
			api.closeWin({});
		}
		
		
		function sendBuriedNotifi(busionessid, pagetype, pagetypeid) {
			var userinfo = {
				uid : $api.getStorage('cfnetppuid'),
				jid : $api.getStorage('cfnetppjxid'),
				uname : $api.getStorage('cfnetppusername'),
			}
			var data = {
				busionessid : busionessid,
				pagetype : pagetype,
				pagetypeid : pagetypeid,
				sourceurl : api.pageParam.sourceurl,
				sourcetitle : api.pageParam.sourcetitle,
				accesspageurl : window.location.pathname,
				accesspagetitle : document.title,
				userinfo : userinfo
			}
			SendBehaviorTrajectoriesNotifi_Study(data);
		}

		function keyback() {
			api.addEventListener({
				name : 'keyback'
			}, function(ret, err) {
				api.sendEvent({
					name : 'refreshQusetionData'
				});
				api.closeToWin({
					name : 'TeacherQuestionsWin'
				});
				api.closeWin({});
			})
		}
	</script>
</html>